package com.demo.dao.repository;

import com.demo.model.Person;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

/**
 * @author K
 */
public interface PersonRepository extends ElasticsearchRepository<Person, Long> {

    /**
     * 根据身份查找个人信息
     * @param identity 身份
     * @return 个人信息集合
     */
    List<Person> findByIdentities(String identity);

    List<Person> findByIdentities(List<String> identities);
}
